package kpi.java_training.database;

import kpi.java_training.domain.questions.Topic;
import kpi.java_training.users.UsersList;

import java.util.List;

/**
 * Created by Alex Kebkalo (kebka@mail.ru) on 11.03.14.
 */
public interface DataManager {
    public List<Topic> loadQuestions() throws Exception;
    public List<Topic> loadQuestions(String user) throws Exception;
    public List<String> loadAnswers(String user) throws Exception;
    public UsersList loadUsers() throws Exception;

    public void saveTeachingData(String user, List<Topic> topics, List<String> answers) throws Exception;
    public void saveUserData(UsersList users) throws Exception;
}
